function Options() {
	var _locations = new Array();
	
	function sortName(a, b) {
		if (a.name < b.name) {
			return -1;
		} else if (a.name == b.name) {
			return 0;
		} else {
			return 1;
		}
	};

	this.GetLocations = function() {
		return _locations;
	};
	
	this.SetLocations = function(locations) {
		_locations = locations;
		_locations.sort(sortName);
	};
	
	this.GetTrendsAvailable = function(callback) {
		yqlRequest = new YQLRequest(QUERY.TREND_AVAILABLE, new TrendsAvailable());
		yqlRequest.onReady = callback;
		yqlHandler.MakeRequest(yqlRequest);
	};
};